﻿using Ouere.Contract.Domain;

namespace Ayatta.Contract.Domain
{
    /// <summary>
    /// 宠物背包可放物品
    /// </summary>
    public class PetProp : BaseEntity<int>
    {
        /// <summary>
        /// 分类
        /// </summary>
        public PetPropCategory Category { get; set; }

        /// <summary>
        /// 金袋分类
        /// </summary>
        public CoinBagCategory CoinBagCategory { get; set; }

        /// <summary>
        /// 金袋级别
        /// </summary>
        public CoinBagLevel CoinBagLevel { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 参数
        /// </summary>
        public string Param { get; set; }

        /// <summary>
        /// 扩展信息
        /// </summary>
        public string Extra { get; set; }

        /// <summary>
        /// 变卖单价 道具卡碎片、护身符碎片、道具卡、护身符，均可“变卖”成免费货币；金袋不能变卖
        /// </summary>
        public int Price { get; set; }

        public bool Status { get; set; }

        /// <summary>
        /// 是否可变卖	道具卡碎片、护身符碎片、道具卡、护身符，点击均可选择“变卖”成免费货币；金袋不能变卖
        /// </summary>
        public bool CanSale
        {
            get { return Category != PetPropCategory.CoinBag; }
        }
    }
}